﻿using System;

namespace 抽象类
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            test1 x = new test2();
            //sizeof(test2);
        }
    }

    abstract class test1
    {
        int age;


        public abstract int Age
        {


            get;
            set;
        }
        public int Age1 { get => age; set => age = value; }
    }
    class test2:test1
    {
        public override int Age
        {
            get;
            set;
        }
        public int test3(int x)
        {

        }
    }
}
